<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>天绎基础平台</title> 
<%@ include file="/commons/css_js_head.jsp" %>
<link href="${ctx}/css/model.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/menu.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/js/Geometry.js" type="text/javascript"></script>

<script>
var changeWidth = 0;

function resizeIframe(){
	document.getElementById("mainFrame").height = Geometry.getViewportHeight()-99;
	document.getElementById("mainFrame").width = Geometry.getViewportWidth()-changeWidth;
}

</script>

<link rel="Shortcut Icon" href="${ctx}/images/xf.ico" />
<link rel="Bookmark" href="${ctx}/images/xf.ico" />

<base target="_self" />
</head>

<body onresize="resizeIframe();">

<div id="box">
	 
	 <!-- 标题、菜单、快捷菜单、统计信息  start -->
     <div class="top">
     	<div class="top_b">
         <div class="top_t">
              
              <!-- 标题 start -->
              <div class="top_1">
                   <div class="top_bant"><img src="${pageContext.request.contextPath}/images/model/dian.png" width="12" height="12" /></div>
                   <div class="text_1">天绎基础平台 >> ${requestScope.menuname} >> 
                   	欢迎你:${efUserSession.efUser.userName}(${efUserSession.efUser.userAccount})
                   </div>
                   <div class="text_1" style="width:50%;padding-right: 20px;float:right;">
                   	
                   	<MARQUEE  scrollAmount=2 direction=3 ALIGN="BOTTOM"　BEHAVIOR="AlterNATE" DIRECTION="LEFT"
     				 ONMOUSEOUT=this.start() ONMOUSEOVER=this.stop() SCROLLAMOUNT="20"　>
     				最新公告
     				<c:forEach var="systemMessage" items="${systemMessages}" varStatus="o">
    				<a href="${ctx}/permission/systemMessageAction!doView.ts?smId=${systemMessage.smId }&keepThis=true&amp;TB_iframe=true&amp;height=430&amp;width=500&amp;modal=true" class="thickbox">
	   					<font color="black" >${o.index+1}.</font>
	   					<font color="red" >${systemMessage.title}</font>
	   					<<ef:CodeToName groupname="DicMsgTypeEntity" translateValue="${systemMessage.dicMsgType}"></ef:CodeToName>公告,${systemMessage.operatorUser}>
   					</a>
   					&nbsp;
   					</c:forEach>
   					</MARQUEE>
                   	
                  </div>
              </div>
              <!-- 标题 end -->
              
              <!-- 菜单 start -->
              <div class="top_2">
                <div class="imrcmain0 imgl" style="width:960px;z-index:999999;position:relative;">
                	<div class="imcm imde" id="imouter0">
                		<ul id="imenus0">
							
							<c:forEach var="topMenu" items="${secondMenuList}" varStatus="var">
							
							<li class="imatm"  style="width:90px;">
								<a href="#">${topMenu.menuName}</a>
								<div class="imsc">
									<div class="imsubc" style="width:140px;top:0px;left:0px;">
									<ul style="">
										<c:forEach var="secondLevelMenu" items="${thirdMenuList}">
				    						<c:if test="${secondLevelMenu.parentMenuId==topMenu.menuId}">
				    							<li><a href="${secondLevelMenu.menuUrl}" class="${secondLevelMenu.linkType}" target="${secondLevelMenu.target}">${secondLevelMenu.menuName}</a></li>
											</c:if>
										</c:forEach> 
									</ul>
									</div>
								</div>
							</li>
							
							<!-- 分隔线 start -->
							<li class="imatm"  style="width:2px; height:25px;"><img src="${pageContext.request.contextPath}/images/model/line.gif" width="2" height="25" /></li>
							<!-- 分隔线 end -->
							
							</c:forEach>
							
						</ul>
						<div class="imclear">&nbsp;</div>
					</div>
				</div>
              </div>
              <!-- 菜单 end -->
         </div>
        </div>
         
         <!-- 快捷菜单 start -->
         <div class="top_3">
            <ul class="nav">
                <c:forEach var="menu" items="${menuList}">
            		<li>
	            		<span><img src="${pageContext.request.contextPath}/images/${menu.menuPhotoUrl }" width="20" height="26" /></span>
	            		<a href="${pageContext.request.contextPath}/${menu.menuUrl}" target="${menu.target}"  class="${menu.linkType} text_2">${menu.menuName}</a>
            		</li>
				</c:forEach>  
            </ul>
         </div>
         <!-- 快捷菜单 end -->
         
         <!-- 统计信息 start -->
         <!-- 
         <div class="top_4">
             <ul class="text_3">
                <li>编号/名称/简拼<input type="text" size="30" /> <input type="button"/> </li>
             </ul>
         </div>
          -->
         <!-- 统计信息 end -->
         
     </div>
     <!-- 标题、菜单、快捷菜单、统计信息  end -->
     
     <div class="center">
     		
     		<!-- 左边区域  start -->
          	<!-- 左边区域  end -->
          	
          <!-- V分隔线 start -->
          <!-- V分隔线 end -->
          
          <!-- 右边区域  start -->
          <div class="right">
               <iframe src="${oneMenu}" name="mainFrame" width="100%" height="100%" scrolling-y="no" scrolling-x="no" id="mainFrame" border="0" frameborder="0" onload="resizeIframe();"></iframe>
          </div>
          <!-- 右边区域  end -->
          
     </div>
     
	<div class="meerkat">
	  <div class="footer" align="center">
	  	&nbsp;&nbsp;&nbsp;&nbsp;
	  	<i>Copyright &copy; 2011 广州天绎智能科技有限公司, All Rights Reserved.    公司电话：（86-020）28269508   公司网址： http://www.timespace.org.cn </i>
	  </div>
	</div>
</div> 

</body>
</html>
